const state = {
  departments: []
};

const getters = {
  getDepartments(state) {
    return state.departments
  },

};

const actions = {
  setDepartments({commit, state}, data) {
    commit('SET_DEPARTMENTS_DATA', data)
  },

};

const mutations = {
  SET_DEPARTMENTS_DATA(state, data) {
    state.departments = data
  },
};

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
